/**
 * @file ui_basic.c
 * @author your name (you@domain.com)
 * @brief ui basic frame, struct for each ui page
 * @version 0.1
 * @date 2023-05-28
 * 
 * @copyright Copyright (c) 2023
 * 
 */

#ifndef UI_BASIC_H
#define UI_BASIC_H


#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "log.h"

#include "screen_gesture.h"

#ifdef __cplusplus
extern "C"
{
#endif

typedef int (*ui_basic_func)(int arg0, int arg1, void *arg3);

typedef struct ui_basic_com
{
    int ui_id;
    char ui_name[32];
    void *g_handle; //global ui frame handle
    bool is_loop;   //set true loop call run every 40 ticks
 
    ui_basic_func enter;
    ui_basic_func run;
    ui_basic_func exit;
    
    screen_gesture_callback gesture_cb;
}ui_basic_com_t;




#ifdef __cplusplus
}
#endif


#endif